package com.itheima.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.domain.Book;
import com.itheima.domain.Record;
import com.itheima.domain.User;
import entity.PageResult;

/**
 *用户接口
 */
public interface UserService extends IService<User> {
    //通过User的用户账号和用户密码查询用户信息
    User login(User user);

    int insert(User user);

    PageResult search(User user, Integer pageNum, Integer pageSize);

    PageResult searchUsers( User user, Integer pageNum, Integer pageSize);

    Integer startOrStopUser(String email);
}
